package com.sghd.pojo.candy.player.vo;

import com.sghd.pojo.fight.game.LevelVo;
import com.sghd.pojo.fight.game.RoomType;

/**
 * @author frank
 * @date 2019-01-25 17:31
 * @desc 获取玩家信息
 **/
public class ReqPlayerVo extends BaseReq {
    private RoomType type;
    private LevelVo levelVo;

    public static ReqPlayerVo valueOf(long id) {
        ReqPlayerVo reqPlayerVo = new ReqPlayerVo();
        reqPlayerVo.id = id;
        reqPlayerVo.type = RoomType.PVP;
        return reqPlayerVo;
    }

    public static ReqPlayerVo valueOf(long id, LevelVo levelVo) {
        ReqPlayerVo reqPlayerVo = new ReqPlayerVo();
        reqPlayerVo.id = id;
        reqPlayerVo.type = RoomType.PVE;
        reqPlayerVo.levelVo = levelVo;
        return reqPlayerVo;
    }

    public RoomType getType() {
        return type;
    }

    public void setType(RoomType type) {
        this.type = type;
    }

    public LevelVo getLevelVo() {
        return levelVo;
    }

    public void setLevelVo(LevelVo levelVo) {
        this.levelVo = levelVo;
    }
}
